package design.mode.model.adapter;

/**
 * @author ldanniel
 * @description 计算机类
 * @date 2023/23/15:18
 * @since jdk11
 */
public class Computer {
   public String readSDCard(SdCard sdCard){
        if(sdCard == null){
            throw new NullPointerException("sdCard can not be null");
        }
        return sdCard.read();
    }
}
